package com.hao.wms.query;

public class SystemMenuQueryObject extends QueryObject {
    private Long parentId = -1L;
    private String parentSn;

    public String getParentSn() {
        return parentSn;
    }

    public void setParentSn(String parentSn) {
        this.parentSn = parentSn;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public void customerQuery() {
        if (parentId > 0) {
            addQuery("obj.parent.id=?", parentId);
        } else {
            addQuery("obj.parent.id IS NULL");
        }
    }

}
